package com.mujin.keji.collectionsystem.module.mypager.views;

import android.text.Html;
import android.widget.TextView;

import com.mujin.keji.collectionsystem.R;
import com.mujin.keji.collectionsystem.base.BaseActivity;
import com.mujin.keji.collectionsystem.module.mypager.dto.VersionListDto;

/**
 * 历史版本详情
 *
 * @author weishixiong
 * @Time 2018-07-12
 */
public class HistoryDetailActivity extends BaseActivity {
    private TextView tvContent;
    @Override
    protected void createViewModel() {

    }
    @Override
    public int intiLayout() {
        return R.layout.activity_historydetail;
    }

    @Override
    public void initView() {
        setleftImage(R.drawable.image_arrow_left_white, true, null);
        tvContent = (TextView) findViewById(R.id.tv_content);
    }

    @Override
    public void initData() {
        VersionListDto versionListDto = (VersionListDto) getIntent().getSerializableExtra("versionListDto");
        setCenterTitle(versionListDto == null ? "" : versionListDto.getVersionCode(), "#FFFFFF");
        //格式化换行
        tvContent.setText(versionListDto == null ? "" : versionListDto.getContent());
    }

    @Override
    public void initListener() {

    }
}
